package com.example.HQCource;

import com.HQCourse.vod.vod.service.ChapterService;
import com.HQCourse.vod.vod.service.VideoVisitorService;
import com.example.HQCourse.vo.vod.ChapterVo;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

public class test {
    @Autowired
  private VideoVisitorService videoVisitorService;
    @Autowired
    private ChapterService chapterService;
    @Test
    public void demo(){

        Long l= Long.valueOf(18);
        System.out.println(l);
        Map<String,Object> count = videoVisitorService.findCount(l, "2020-01-01", "2023-02-02");
        System.out.println(count);
    }

    @Test
    public  void Text(){
        List<ChapterVo> treeList = chapterService.getTreeList(Long.valueOf(2));
        System.out.println(treeList);
    }
}
